package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "comment_like")
public class CommentLike implements Serializable {

    private ObjectId id;
    private Long userId;           //点赞评论的用户
    private ObjectId commentId;     //评论的id
    private Long created;           //发表时间
}

